<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 {include file='../Common/hy_header.html'}
			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
            	<button data-id="daoform" data-href="index.php?g=admin&m=forms&a=dao_log&id={$form_id}" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 导出数据</button>
            </div>

            <div class="am-form-group am-margin-left am-fl">
            </div>
          </div>
        </div>
      </div>
      <div class="am-u-md-6 am-cf">
        <div class="am-fr">
        <form role="form" method="post" enctype="multipart/form-data" action="index.php?g=admin&m=forms&a=log&id={$form_id}">
          <div class="am-input-group am-input-group-sm">
          	<input type="hidden" name="form_id" value="{$form_id}">
            <input value=""  type="file" name="file" class="am-form-field" style="width: 50%;float: right;">
                <span class="am-input-group-btn">
                  <button class="am-btn am-btn-default" type="submit">上传</button>
                </span>
          </div>
         </form>
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"></th>
                {foreach from=$table_list.table item=tl}
                <th class="table-title">{$tl}</th>
                {/foreach}
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	 {foreach from=$art_list item=art}
            <tr>
              <td></td>
              {foreach from=$table_list.val item=tv}
              <td>{$art.$tv}</td>
              {/foreach}
              <td>
              	<button data-param ="{ url:'index.php?g=admin&m=forms&a=del_log&form_id={$form_id}&id={$art.id}',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
              </td>
            </tr>
             {/foreach} 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  {$art_page}
  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
    {if $arr.error eq 1}
    	<script>
    		var msg = "{$arr.content}";
    		alert(msg);
    	</script>
    {/if}
   {include file='../Common/hy_footer.html'}
	</body>
</html>
